package com.itasura.proxy;

import lombok.extern.slf4j.Slf4j;

/**
 * @author sailor wang
 * @date 2018/11/21 7:59 PM
 * @description
 */
@Slf4j
public class ProxyRentHouse implements RentHouse {

    private RentHouse rentHouse;

    public ProxyRentHouse(RentHouse rentHouse) {
        this.rentHouse = rentHouse;
    }

    @Override
    public void rentHouse() {
        log.info("中介代理，可以帮你代理找房子。。。");
        rentHouse.rentHouse();

    }
}